package com.zmzncs.lmtc.module.customer.dao;

import com.zmzncs.lmtc.module.customer.pojo.cust_info.CustInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.customer.pojo.cust_info.CustInfoDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 客户-客户信息 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-10-12
 */
@Repository
public interface CustInfoDao extends BaseMapper<CustInfo> {

    /** 手机号/昵称查询会员信息*/
    List<CustInfoDTO> getCustInfoByPhoneOrName(@Param("info") String info);

    /**查询正式会员/潜在会员 */
    List<CustInfoDTO> getInfoByMemberType(@Param("memberType") Integer memberType);
}
